import request from '@/utils/request'

export const addOneCity = data => request({
  url: '/addOneCity',
  method: 'put',
  data: data || {}
})

export const updateOneCityById = data => request({
  url: '/updateOneCityById',
  method: 'patch',
  data: data || {}
})

export const getCityList = data => request({
  url: '/getCityList',
  method: 'post',
  data: data || {}
})

// export const getOneCityById = id => request({
//   url: '/getOneCityById' + id,
//   method: 'get'
// })

